package com.cqxyd.smartsite.service.impl;

import com.cqxyd.smartsite.dao.AdminInfoMapper;
import com.cqxyd.smartsite.pojo.AdminInfo;
import com.cqxyd.smartsite.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class LoginServiceImpl implements LoginService {
	@Autowired
	private AdminInfoMapper adminInfoMapper;

	@Override
	public AdminInfo getAdminInfo(String adminId) {
		AdminInfo adminInfoLogin = adminInfoMapper.selectByPrimaryKey(adminId);
		return adminInfoLogin;
	}

	@Override
	public int updateAdminInfo(AdminInfo adminInfo) {

		return adminInfoMapper.updateByPrimaryKeySelective(adminInfo);
	}

}
